package serviceimpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import Dao.attendenceDao;
import entity.attendence;
import service.attendenceService;
@Service
@Transactional(propagation = Propagation.REQUIRED)
public class attendenceServiceImpl implements attendenceService{

	@Autowired
	private attendenceDao attendenceDao;
	@Override
	public List<attendence> getAll(attendence attendence) {
		// TODO Auto-generated method stub
		return attendenceDao.getAll(attendence);
	}

	@Override
	public void add(attendence attendence) {
		attendenceDao.add(attendence);
		
	}

	@Override
	public void batchDelete(Long[] ids) {
		attendenceDao.batchDelete(ids);
		
	}

}
